Using Table Valued Functions in SQL Server 2005 To Implement a Spatial Data Library

نویسندگان

  • Jim Gray
  • Alexander S. Szalay
  • Gyorgy Fekete
چکیده

This article explains how to add spatial search functions (point-near-point and point in polygon) to Microsoft SQL ServerTM 2005 using C# and table-valued functions. It is possible to use this library to add spatial search to your application without writing any special code. The library implements the public-domain C# Hierarchical Triangular Mesh (HTM) algorithms from Johns Hopkins University. That C# library is connected to SQL Server 2005 via a set of scalar-valued and table-valued functions. These functions act as a spatial index. Resources The article is illustrated by examples that can be downloaded from http://msdn.microsoft.com/sql/2005/. The sample package includes: • An 11 MB sample spatial database of United States cities and river-flow gauges. • The sample queries from the sql\testScript.sql article. • A Visual Studio 2005 project, \htm.sln, with all the SQL and C# code. • A paper, doc\Table_Valued_Functions.doc. • An article, doc\HtmCsharp.doc, that provides a manual page for each routine. • An article, doc\HTM.doc, that explains the Hierarchical Triangular Mesh algorithms in detail. • An article, doc\There_Goes_the_Neighborhood.doc, which explains how the HTM algorithms are used in Astronomy. This article also explains two other approaches: zones for batch-oriented point-to-point and point-area comparisons, and regions for doing Boolean algebra on areas. Public domain implementations of those approaches implemented for SQL Server are used in the SkyServer, a popular Astronomy website for the Sloan Digital Sky Survey (http://SkyServer.SDSS.org/ and by several other astronomy data servers.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Spatio-Temporal Stream Processing in Microsoft StreamInsight

Microsoft StreamInsight is a platform for developing and deploying streaming applications. StreamInsight embraces a temporal stream model to unify and further enrich query language features, handle imperfections in event delivery and define consistency guarantees on the output. With its extensibility framework, StreamInsight enables developers to integrate their domain expertise within the quer...

متن کامل

Integrating Pattern Growth Mining on SQL-Server RDBMS

Most of the FIMI implementations are memory-like. However when we deal with data warehouse the size of datasets are extremely huge for memory copy. However, using a pure SQL-like approach is inefficient, even almost implementations rarely take advantages of SQL-Extensions such as SQL-Cursors, Store Procedures and UDF functions. Furthermore, RDBMS vendors offer a lot of SQL-Extensions for taking...

متن کامل

Geospatial Stream Query Processing using Microsoft SQL Server StreamInsight

Microsoft SQL Server spatial libraries contain several components that handle geometrical and geographical data types. With advances in geo-sensing technologies, there has been an increasing demand for geospatial streaming applications. Microsoft SQL Server StreamInsight (StreamInsight, for brevity) is a platform for developing and deploying streaming applications that run continuous queries ov...

متن کامل

Template-Based Proxy Caching for Table-Valued Functions

Certain types of database-backed web sites heavily utilize userdefined functions in SQL queries. Unfortunately, existing web proxy caching schemes can not handle these functions. In order to enable proxy caching for such web sites, we propose a template-based proxy caching framework, a function proxy, for table-valued functions. In our framework, function templates are registered with the proxy...

متن کامل

Extensible Location Dependent Spatial Object Search on Road Networks

Extensible Location-Dependent Spatial Object that searches for spatial object on road networks. Here it provides Distance Indexing technique and providing a dynamic object mapping mechanism of spatial object search. It is very efficient and flexible for various types of queries, namely, range search and nearest neighbor search, on objects over large-scale networks. In spatial object search, a l...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/cs/0701163  شماره 

صفحات  -

تاریخ انتشار 2005